# 创建玩家棋子精灵
import pygame as pg

class Player(pg.sprite.Sprite):
    def __init__(self,way_x,way_y,round):
        super().__init__()
        self.image = pg.surface.Surface((30, 30), pg.SRCALPHA)
        if round == 1:
            pg.draw.circle(self.image, (0, 0, 0),
                       (15,15), 15)
        else :
            pg.draw.circle(self.image, (255, 255, 255),
                           (15,15), 15)
        self.rect = (way_x-15, way_y-15)


